﻿using System;
namespace GtsServer.Model
{
    /// <summary>
    /// 1
    /// </summary>
    [Serializable]
    public partial class TaskUser
    {
        public TaskUser()
        { }
        #region Model
        private int _id;
        private int _taskid;
        private int _userid;
        private int _score;
        private DateTime _jointime;
        private int? _gamecount;
        private int? _state;
        private int? _matchGold;
        private bool? _isHandEdit;

        public bool? IsHandEdit
        {
            get { return _isHandEdit; }
            set { _isHandEdit = value; }
        }

        /// <summary>
        /// 比赛币数量（只有是比赛的任务才有值）
        /// </summary>
        public int? MatchGold
        {
            get { return _matchGold; }
            set { _matchGold = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 任务id
        /// </summary>
        public int TaskID
        {
            set { _taskid = value; }
            get { return _taskid; }
        }
        /// <summary>
        /// 用户账号
        /// </summary>
        public int UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 比赛分数
        /// </summary>
        public int Score
        {
            set { _score = value; }
            get { return _score; }
        }
        /// <summary>
        /// 用户参加时间
        /// </summary>
        public DateTime JoinTime
        {
            set { _jointime = value; }
            get { return _jointime; }
        }
        /// <summary>
        /// 游戏次数
        /// </summary>
        public int? GameCount
        {
            set { _gamecount = value; }
            get { return _gamecount; }
        }
        /// <summary>
        /// 任务完成状态
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        #endregion Model
    }

    public class TaskUserShow : TaskUser
    {
        private int _taskMouldConditionID;
        private int _sortNum;
        private string _imageType;
        private string _conditionValue;
        private string _taskName;
        private string _taskContent;
        private string _taskRemark;
        private int _prizeCount;
        private string _iMSI;
        private string _name;
        private bool _isRobot;
        private string _userAccount;
        private long _rowNumber;

        public long RowNumber
        {
            get { return _rowNumber; }
            set { _rowNumber = value; }
        }

        public string UserAccount
        {
            get { return _userAccount; }
            set { _userAccount = value; }
        }

        //比赛人员管理用到
        public bool IsRobot
        {
            get { return _isRobot; }
            set { _isRobot = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string IMSI
        {
            get { return _iMSI; }
            set { _iMSI = value; }
        }

        public int PrizeCount
        {
            get { return _prizeCount; }
            set { _prizeCount = value; }
        }

        public string TaskRemark
        {
            get { return _taskRemark; }
            set { _taskRemark = value; }
        }

        public string TaskContent
        {
            get { return _taskContent; }
            set { _taskContent = value; }
        }

        public string TaskName
        {
            get { return _taskName; }
            set { _taskName = value; }
        }

        public string ConditionValue
        {
            get { return _conditionValue; }
            set { _conditionValue = value; }
        }

        public string ImageType
        {
            get { return _imageType; }
            set { _imageType = value; }
        }

        /// <summary>
        /// 模板id的排序号  与客户端顺序相一致
        /// </summary>
        public int SortNum
        {
            get { return _sortNum; }
            set { _sortNum = value; }
        }

        public int TaskMouldConditionID
        {
            get { return _taskMouldConditionID; }
            set { _taskMouldConditionID = value; }
        }
    }
}

